package ExceptionTest;

public class ExceptionTest {
    /*
    public static void main(String[] args) {
        try {
            process1();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    static void process1() {
        process2();
    }

    static void process2() {
        Integer.parseInt(null); // 会抛出NumberFormatException
    }*/

    public static void main(String[] args) {
        // 求一个数的绝对值，并赋值给x
        double x = Math.abs(-123.45);
        assert false : "断言 x < 0 失败！";
        System.out.println(x);
    }
}
